package cc.chinagps.gateway.client.handler;

import cc.chinagps.gateway.client.UnitClient;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.epoll.EpollSocketChannel;

public class ClientEpollSocketInitialzer extends ChannelInitializer<EpollSocketChannel> {
    private UnitClient client;

    public ClientEpollSocketInitialzer() {
    }

    public ClientEpollSocketInitialzer(UnitClient client) {
        this.client = client;
    }

    @Override
    protected void initChannel(EpollSocketChannel ch) throws Exception {
        client.initChannel(ch);
    }
}
